import request from '@/utils/request'

// 查询医疗教育列表
export function listEducation(query) {
  return request({
    url: '/gonitis/education/list',
    method: 'get',
    params: query
  })
}

// 修改医疗教育状态 
export function updateStatus(data) {
  return request({
    url: '/gonitis/education/editStatus',
    method: 'put',
    data: data
  })
}

// 审核医疗教育
export function auditEducation(data) {
  return request({
    url: '/gonitis/education/audit',
    method: 'put',
    data: data
  })
}

// 获取医疗教育信息
export function queryEducation(id) {
  return request({
    url: '/gonitis/education/' + id,
    method: 'get'
  })
}

// 更新医疗教育信息
export function updateEducation(data) {
  return request({
    url: '/gonitis/education/update',
    method: 'put',
    data: data
  })
}

// 保存医疗教育信息
export function saveEducation(data) {
  return request({
    url: '/gonitis/education/save',
    method: 'post',
    data: data
  })
}

// 删除医疗教育信息
export function removeEducation(ids) {
  return request({
    url: '/gonitis/education/remove',
    method: 'delete',
    data: ids
  })
}
